const request=require("utils/request.js");
App({
  onLaunch: function () {
    var that=this;
    wx.getSystemInfo({
      success: function(res) {
        that.globalData.windowWidth=res.windowWidth;
        that.globalData.windowHeight=res.windowHeight;
      },
    })
  },
  isLogin: function() {
    // 是否登陆
    var uniqid = wx.getStorageSync('hhh');
    if (uniqid) {
      return 1;
    } else {
      return 0;
    }
  },
  globalData: {
    imgBaseUrl: "https://chifresh.cn/public/img",
    baseUrl: "https://chifresh.cn/text/",
    imgPreUrl: "https://chifresh.cn/public",
  },
  func:{
    postReq:request.postReq,
    getReq:request.getReq
  }
})